<div class="page_login" >
    <h1>User's Requirement</h1> 

    <?php
    $model = new UserLoginForm();
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'login-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    echo $form->errorSummary($model);
    ?>    
    <?php if (isset(Yii::app()->session['errorloginkhothe'])) { ?>
        <div style="background: none repeat scroll 0 0 #eee;border: 1px solid #ccc;color: #bb1414;margin-top: 10px;padding: 5px;">
            <?php echo Yii::app()->session['errorloginkhothe']; ?>
        </div>
    <?php } ?>
    <div  class="row">
        <h3><?php echo $form->label($model, 'username'); ?></h3>
    </div>

    <div  class="row">
        <?php echo $form->textField($model, 'username', array('class' => 'inputText250')); ?>
        <br>
        <?php echo $form->error($model, 'username'); ?>
    </div>

    <div  class="row">
        <h3><?php echo $form->label($model, 'password'); ?></h3>
    </div>

    <div  class="row">
        <?php echo $form->passwordField($model, 'password', array('class' => 'inputText250')); ?>
        <br>
        <?php echo $form->error($model, 'password'); ?>
    </div>

    <div class="clear"></div>
    <div class="row">
        <?php echo $form->checkBox($model, 'rememberMe', array('class' => 'inputCheckbox')); ?>
        <?php echo $form->label($model, 'rememberMe', array('class' => 'inputCheckLabel')); ?>
    </div>

    <div  class="row">
        <?php echo CHtml::submitButton(t('cms', 'Login'), array('class' => 'button')); ?>
    </div>
    <div  class="row">
        <?php
        echo CHtml::link('&#272;&#259;ng K&yacute;', array("site/register"), array('class' => "dangky-khothe"));
        echo ' | ';
        echo CHtml::link('Qu&ecirc;n M&#7853;t Kh&#7849;u', array("site/forgetpass"), array('class' => 'quenmatkhau-khothe'));
        ?>
    </div>

    <?php $this->endWidget(); ?>
</div>
<div class="clear"></div>